prices = {
    'ACME': 45.23,
    'AAPL': 612.78,
    'IBM': 205.55,
    'HPQ': 37.20,
    'FB': 10.75
}


## 对字典的值进行排序
min_price = min(zip(prices.values(),prices.keys()))
max_price = max(zip(prices.values(),prices.keys()))

print(min_price)
print(max_price)

price_sorted = sorted(zip(prices.values(),prices.keys()),reverse=True)
print(price_sorted)
print("=========================================")
print(min(prices.values()))
print(max(prices.values()))
print("=========================================")
print(min(prices, key=lambda k: prices[k]))
print(max(prices, key=lambda k: prices[k]))